package com.salary.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.staff.entity.Staff;

@Entity
@Table(name="t_tax")
public class Tax {//个人所得税实体类，实现关联关系

	private Long id;
	private float commonTax;
	private float welfareTax;
	private float amount;
	private Date accountTime;
	private Staff staff;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	@ManyToOne(cascade=CascadeType.ALL)
	public Staff getStaff() {
		return staff;
	}

	public float getCommonTax() {
		return commonTax;
	}
	public float getWelfareTax() {
		return welfareTax;
	}
	public float getAmount() {
		return amount;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public void setCommonTax(float commonTax) {
		this.commonTax = commonTax;
	}
	public void setWelfareTax(float welfareTax) {
		this.welfareTax = welfareTax;
	}
	public void setAmount(float amount) {
		this.amount = amount;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}
	public Date getAccountTime() {
		return accountTime;
	}
	public void setAccountTime(Date accountTime) {
		this.accountTime = accountTime;
	}

}
